package com.ym.medical.domain.entity;

import com.ym.common.constant.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@ApiModel(value = "HIS与云景医院编码映射表")
public class HospitalCodeMapEntity extends BaseEntity {


    @ApiModelProperty(notes = "")
    @Size(max = 32 , message = "长度必须在{min}和{max}之间",groups = {Add.class,Update.class})
    private String hospitalName;

    @ApiModelProperty(notes = "")
    @Size(max = 32 , message = "长度必须在{min}和{max}之间",groups = {Add.class,Update.class})
    private String ymHospitalCode;

    @ApiModelProperty(notes = "")
    @Size(max = 32 , message = "长度必须在{min}和{max}之间",groups = {Add.class,Update.class})
    private String partnerHospitalCode;

    @ApiModelProperty(notes = "")
    @Size(max = 32 , message = "长度必须在{min}和{max}之间",groups = {Add.class,Update.class})
    private String partnerCode;

    @ApiModelProperty(notes = "")
    @Size(max = 255 , message = "长度必须在{min}和{max}之间",groups = {Add.class,Update.class})
    private String remarks;

    public interface Add {
    
    }

    public interface Update {
    
    }

}